package com.css.dzj.dzjap.modules.info.service;

import com.css.dzj.dzjap.modules.apunit.entity.ApUnitEntity;
import com.css.dzj.dzjap.modules.info.vo.ApJsVo;
import com.querydsl.core.QueryResults;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;
import java.util.Date;
import java.util.HashMap;
import java.util.List;

@Service
public interface EvalUnitService {

    QueryResults<ApUnitEntity> getPage(
            Pageable pageRequest, String unitName, String uniscid, String startTime, String endTime, String spStatus, String spPerson, String sbStatus, HttpServletRequest request);

    boolean delEval(String id);

    QueryResults<ApUnitEntity> getPageEval(Pageable pageable, String enterpriseName, String enterpriseIdNumber);

    void update(ApUnitEntity apUnitEntity);

    ApUnitEntity findById(String id);

    /***
     * 根据用户名查找信用Card
     * @param userName
     */
    String findApIdCard(String userName);

    HashMap getCount();

    HashMap getCountByYear(String year);

    /*********************************************** 门户调用接口 start *********************************************************************/

    /**
     * 门户分页查询安评信息
     */
    QueryResults<ApUnitEntity> getPage(
            Pageable pageRequest, String unitName, String uniscid, String startTime, String endTime, String spStatus, String spPerson, String sbStatus);

    List<ApUnitEntity> queryByParams(String unitName, String uniscid, String startTime, String endTime, String spStatus, String spPerson, String sbStatus);

    List<ApUnitEntity> queryByIds(String ids);

    Integer getTotalCount();

    /*********************************************** 门户调用接口 end *********************************************************************/
  /*  List<ApUnitEntity> getPageLH( String unitName, String uniscid);

  //向门户提供监管对象接口
  QueryResults<ApUnitEntity> getPageLHCx(  Pageable pageRequest,String unitName, String uniscid,Integer pageSize, Integer pageNo);*/
}
